package cheme.ProcessEditor.Figures.Util;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.RectangleFigure;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.swt.SWT;

import cheme.ProcessEditor.ChemePresentation;

public class RectangularBulletFig extends RectangleFigure
{
	public RectangularBulletFig()
	{
		setBounds(new Rectangle(0,0,8,8));
		
	    setBackgroundColor(ChemePresentation.Rows.Bullets.background);
	    setForegroundColor(ChemePresentation.Rows.Bullets.foreground);
	}
	
	@Override
	public void paintFigure(Graphics graphics)
	{
		graphics.pushState();
		graphics.setAntialias(SWT.ON);
		super.paintFigure(graphics);
		graphics.popState();
	}
}